import matplotlib.pyplot as plt
import numpy as np

plt.figure()

# 直角坐标系
plt.subplot(row, col, xuhao)
plt.xlabel('x轴坐标量纲')
plt.ylabel('x轴坐标量纲')
plt.plot(x, y)
plt.show()

# 对数坐标系


# 读取txt的全部数据并放入数组
# txt的数据格式为每行放1个数据

# data = np.array([])
data = []
data_len = len(f.readlines())
f = open(file_path)
for i in range(data_len):
    data_pre = f.readline()
    data.append(data_pre)

data = np.loadtxt(file_path)

